Replication Archive for Free Movement of People and the Success of Far-Right Parties: Evidence from Switzerland's Border Liberalization



This folder contains the instructions necessary to replicate the results in "Replication Archive for Free Movement of People and the Success of Far-Right Parties: Evidence from Switzerland's Border Liberalization," by Ala Alrababah, Andreas Beerli, Dominik Hangartner, and Dalston Ward



Data Availability:

The replication folder requires proprietary data that are not provided with the replication files. Below, we mention each of the datasets that are not provided and detail the contact information for the data sources. 



* VOX and SHP data



	To access SHP, see here: see here: https://www.swissubase.ch/en/catalogue/studies/6097/19802/overview 

					FORS

					Bâtiment Géopolis,

					5th floor Reception desk – room 5614

					CH-1015 Lausanne

					+41 (0)21 692 37 30

					swisspanel@fors.unil.ch



	To access VOX, the contact information is here:

					gfs.bern

					Effingerstrasse 14

					3011 Bern

					Lageplan

					+41 31 311 08 06

					info@gfsbern.ch





	** The first step would be to prepare the data from VOX and SHP surveys. The folder SHP_VOX_preparation contains detailed instructions and a ReadMe File on how to do that.



	** Then, move the main outputs (shp_panel_1999_2017.dta and vox_panel_1996_2016.dta) to analysis/data/cleaning/SHP and analysis/data/cleaning/VOX respectively







* After preparing the data from VOX and SHP, we can proceed with the main analysis for the paper (the "analysis" folder) as follows:



	** Input data:

		- Municipality data:

			- a6_munnr2012_coordinates.dta: provides coordinates (latitude, longitude) of each municipality's centroid (based on its number in 2012). From Beerli et al 2021.

			- border_region_identifiers_bigotta.dta: provides a border region identifier for each municipality based on its number. Based on data from Beerli et al 2021.

			- traveltime_originMUN2012_bordercrossingsMUN.dta: provides travel time data to border crossings.  Based on data from Beerli et al 2021.

			- MuniCodes.csv: Information on municipalities from 2000 census (like language region, urban/rural, etc)

			- cw2019_dec31mergers.csv: Municipality code crosswalk file



		- Immigration/Population data:

			- ggs_grenzgaengerstatistik_1996_2016_quarterly.dta: data on cross border workers from the Swiss Federal Office of Statistics (SFOS)

				- For information on accessing the data: 

					Bundesamt für Statistik

					Sektion Arbeit und Erwerbsleben

					Espace de l'Europe 10

					CH-2010 Neuchâtel

					Schweiz

					Tel.

					+41 58 463 64 00

					info.arbeit@bfs.admin.ch

			- MuniPop_1991_2018: municipal population split by origin

			- PETRA and STATPOP: foreigner registers that we use to get resident immigrant populations split by origin from the Swiss Federal Office of Statistics (SFOS)

				- For information on accessing the data: 

					Bundesamt für Statistik

					Sektion Demografie und Migration

					Espace de l'Europe 10

					CH-2010 Neuchâtel

					Schweiz

					+41 58 463 67 11



		- Voting data:

			- px-x-1702020000_105.xlsx: Elections (1991 - 2019) data on voting in national elections from the Swiss Federal Office of Statistics (SFOS)

			- px-x-1702020000_105_1987.xlsx: Elections (1987-1991) data on voting in national elections from the Swiss Federal Office of Statistics (SFOS)

			- px-x-1703030000_101_20240403-171844.xlsx: Data on voting in national referendums from the Swiss Federal Office of Statistics (SFOS)



		- Survey data:

			- SHP: Swiss household panel survey: longitudinal survey interviewing all household members of a random sample of private households in Switzerland

				- Variables:

					- satis_fin (p$$i01): Satisfaction with financial situation. 

						- Question: Overall how satisfied are you with your financial situation, if 0 means "not at all satisfied" and 10 "completely satisfied"?

						- Values: 0 not at all satisfied... 10 completely satisfied

					- cmj_risk_unempl (p$$w101): CMJ: Risk of unemployment: Next 12 months

						- Question: How do you evaluate the risk of becoming personally unemployed in the next 12 months, if 0 means "no risk at all" and 10 "a real risk"?

						- Values: 0 no risk at all... 10 a real risk

					- housingexp (h$$h38): Household-level variable. Assessment of expenses connected with accommodation

						- Values: 0 (very small)... 10 (much too high)

					- opin_army (p$$p12): Opinion on Swiss army: Direction

						- Values: 1 Strong army 2 Neither 3 No army

					- trust_gov (p$$p04): Trust in Federal Government

						- Question: How much confidence do you have in ..., if 0 means "no confidence" and 10 means "full confidence"?

						- Values: 0 no confidence... 10 full confidence

					- satis_demo (p$$p02): Overall satisfaction with democracy

						- Question: Overall, how satisfied are you with the way in which democracy works in our country, if 0 means "not at all satisfied" and 10 "completely satisfied"?

						- Values: 0 not at all satisfied... 10 completely satisfied

					- opin_eu (p$$p14): Opinion on joining the EU: Direction

						- Question: Are you in favour of Switzerland joining the European Union or are you in favour of Switzerland staying outside of the European Union?

						- Value: 1 in favor of joining... 3 in favor of staying

					- opin_foreign (p$$p15): Opinion on chances for foreigners: Direction

						- Question: Are you in favour of Switzerland offering foreigners the same opportunities as those offered to Swiss citizens, or in favour of Switzerland offering Swiss citizens better opportunities?

						- Values: 1 equal opportunities for both... 3 better opportunities for Swiss

					- opin_taxation (p$$p17): Opinion on taxes on high income: Direction

						- Values: 1 favor increase 2 neither 3 favor decrease

					- polit_interest (p$$p01): Interest in politics

						- Question: Generally, how interested are you in politics, if 0 means "not at all interested" and 10 "very interested"?

						- Values: 0 not at all interested... 10 very interested

					- hhinc_net: Yearly household net-income

					- age: Age (continuous)

					- gender: 1 man, 2 woman

					- educat: highest level of education: 

						- 0 incomplete compulsory school

						- 1 compulsory school, elementary vocational training

						- 2 domestic science course, 1 year school of commerce

						- 3 general training school

						- 4 apprenticeship (CFC, EFZ)

						- 5 full-time vocational school

						- 6 bachelor/maturity

						- 7 vocational high school with master certificate, federal certificate

						- 8 technical or vocational school

						- 9 vocational high school ETS, HTL, etc. 

						- 10 university, academic high school,  HEP, PH, HES, FH

					- wstat: Labor market status (1: active occupied, 2 unemployed, 3 not in labor force)

					- civsta: Civil status

						1 single, never married

						2 married

						3 separated

						4 divorced

						5 widower/widow

						6 registered partnership

						7 dissolved partnership 

					- nation: First nationality

					- pr01: Confession or religion

					- pr04: Participation in religious services: frequency

					- pe16: First language (personal use)

					- idpers: Identification number (person)

					- idhouse: Identification number (household)

					- weight_i_pop: Population weights (Individual level)

					- weight_h_pop: Population weights (Household level)



			- VOX: Post-popular vote survey

				- Variables:

					- income: Monthly net-income of household

					- female: Gender (1 = female)

					- Age: Age (continuous). For some reason, vox63 only has categorical age variable. I took the middle value of each category 

					- Education: highest education level. 

						- tertiary: university, ETH, university of applied science, higher technical/vocational training

						- secondary: matura/primary school teacher, apprenticeship

						- primary: compulsory education 

					- Employed: Are you currently working (1: Yes, 2: No)

					- Married: Marital Status (1: married, 0: single, widowed, divorced, living with partner)

					- gewteil: weight correcting for participation (turnout)



		- Traffic data:

			- traffic: Swiss Federal Roads Office

				- zst_balanced_yearly_inputR_all.dta: Main traffic data

				- zst_balanced_yearly_inputR_noNatStr.dta: Main traffic data excluding national highways

				- zst_inputR_hourly_conganalysis.dta: Congestion index data

				- zst_inputR_hourly_conganalysis_noNatStr.dta: Congestion index data excluding national highways



			- For information on accessing the data:

				Verkehrsdaten@astra.admin.ch

				Eidgenössisches Departement für Umwelt,

				Verkehr, Energie und Kommunikation UVEK

				Bundesamt für Strassen ASTRA

				Abteilung Strassennetze

				Verkehrs- und Innovationsmanagement

				Verkehrsmonitoring



		- Parliamentary data in ticino:

			- ticino_parliament_main.qs: This has data on parliamentary bills, whether they're immigration related, and whether they were sponsored by MPs in border region or other region. Each bill shows up twice (for treated and control region)

			- ticino_parliament_byregion.qs: This has data on parliamentary bills, whether they're immigration related, and whether they were sponsored by MPs in border region or other region. Each bill shows up in a region only if it was sponsored by an MP in that region. 

			- Data built using 1- ticino_full.txt: Parliamentary bills scraped from Ticino parliament website, 2- GC_TI_1987-2019.xlsx: Information about MPs in each parliament shared by Ticino parliament and 3- tinico_handcoded.csv: Handcoded bills related to immigration



			- For information on accessing the data:

				Repubblica e Cantone Ticino

				Dipartimento delle finanze e dell’economia

				Divisione delle risorse

				Ufficio di statistica

				Centro di informazione e documentazione statistica

				via Bellinzona 31

				CH-6512 Giubiasco

				Tel. +41 91 814 50 16

				Fax +41 91 814 50 19 

				Centralino: dfe-ustat.cids@ti.ch





		- Labor market data: The following data files all come from Beerli et al 2021. 

			- a31_borderid_mun2008.dta: provides a border region identifier for each municipality based on its number in the year 2008 from Beerli et al 2021.

			- a41_traveltime_munnr2008.dta: provides the worker weighted (using the Business Census) travel time to the next border crossing for each municipality based on its number in 2008 from Beerli et al 2021.

			- a42_traveltime_munnr2012w.dta: provides the worker weighted (using the Business Census) travel time to the next border crossing for each municipality based on its number in 2012 from Beerli et al 2021.

			- d01_sess_1994_2010.dta: Swiss Earnings Structure Surveys (SESS) 1994--2010 from Beerli et al 2021.

			- d4_sess_outcomesnat.dta: Swiss Earnings Structure Surveys (SESS) 1994--2010 from Beerli et al 2021.



			For information on accessing the data, see Beerli et al 2021.



		- Newspaper data from Factiva:

			- EconAllDE.csv: Annual count of articles that mention immigration, far-right parties, and economic concerns in German

			- EconAllFR.csv: Annual count of articles that mention immigration, far-right parties, and economic concerns in French

			- MigrantAllDE.csv: Annual count of articles that mention immigration and far-right parties in German

			- MigrantAllFR.csv: Annual count of articles that mention immigration and far-right parties in French

			- MigrantCH_DE.csv: Annual count of articles that mention immigration in three German-speaking Swiss newspapers

			- MigrantCH_FR.csv: Annual count of articles that mention immigration in three French-speaking Swiss newspapers

			- MigrantDE.csv: Annual count of articles that mention immigration in three German newspapers

			- MigrantFR.csv: Annual count of articles that mention immigration in three French newspapers

			- MigrantIT.csv: Annual count of articles that mention immigration in two Italian newspapers

			- StressAllDE.csv: Annual count of articles that mention immigration, far-right parties, and overcrowding terms in German

			- StressAllFR.csv: Annual count of articles that mention immigration, far-right parties, and overcrowding terms in French

			- StressCH_DE.csv: Annual count of articles that mention immigration and overcrowding terms in three German-speaking Swiss newspapers

			- StressCH_FR.csv: Annual count of articles that mention immigration and overcrowding terms in three French-speaking Swiss newspapers

			- StressDE.csv: Annual count of articles that mention immigration and overcrowding terms in three German newspapers

			- StressFR.csv: Annual count of articles that mention immigration and overcrowding terms in three French newspapers

			- StressIT.csv: Annual count of articles that mention immigration and overcrowding terms in two Italian newspapers



		- mappingdata: Shape files for the Switzerland map



	** Code files:

		- country_codes.R: Country codes for STATPOP/PETRA data

		- functions.R: Functions used in the data analysis

		- 00dataOrganizing.R: 

			- Cleans and merges population, immigration, and voting data. 

			- Cleans VOX, SHP, and Ticino parliamentary data

			- Produces the dataset that will be used for the main analyses

		- 01labormarketMerge.do: Merges labor market datasets from Beerli et al to be used for the analysis of economic outcomes

		- 02mapping_travelTim.R: Produces the map in Figure 1 (Visualization of The Empirical Strategy)

		- 03analysis.R: Produces regression tables for immigration and voting outcomes. Prepares the data for the immigration and voting figures

		- 04political_effects_plot.R: Produces Figure 3 (Effects of Opening Borders on Anti-Immigrant Voting).

		- 05immigrants_effects_plot: Produces Figure 2 (Effects of Opening Borders on Anti-Immigrant Voting)

		- 06econ_analysis.R: Produces Figure 4 (Effects of Opening Borders on Employment) and Figure 5 (Effects of Opening Borders on Real Wages) as well as regression tables for the economic outcomes

		- 07traffic.R: Produces Figure 8 (Effects of Opening Borders on Traffic) as well as the appendix figures and regression tables for traffic outcomes

		- 08ticino.R: Produces Figure 9 (Effects of Opening Borders on Immigration-Related Parliamentary Bills in Ticino) as well as appendix figures and regression tables for Ticino parliamentary data

		- 09summary_stats_main.R: Produces appendix summary statistics tables for the municipality-level data

		- 10SHP.R: Produces Figure 6 (Effects of Opening Borders on Perceived Economic Outcomes), Figure 10 (Effects of Opening Borders on Favoring More Opportunities for the Swiss Compared to Foreigners), and appendix regression tables for SHP data

		- 11summary_stats_SHP.R: Produces appendix summary statistics tables for the SHP data

		- 12VOX.R: Produces Figure 7 (Effects of Opening Borders on Cultural, Environmental, and Security Concerns) and appendix regression tables that use VOX data

		- 13summary_stats_VOX.R: Produces appendix summary statistics tables for VOX data

		- 14spatial_regressions.R: Produces appendix table accounting for spatial dependence 

		- 15referendum_final.R: Produces appendix figures and tables for the referendum data

		- 16Factiva.R: Produces appendix figures and tables for the Factiva newspaper data

















** Software Version: 

This replication archive was last run on a Mac OS 13.5.1 (Ventura). 



R version 4.3.1 (2023-06-16)

Platform: aarch64-apple-darwin20 (64-bit)

Running under: macOS Ventura 13.5.1



Matrix products: default

BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 

LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.11.0



locale:

[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8



time zone: Europe/Rome

tzcode source: internal



attached base packages:

[1] stats     graphics  grDevices utils     datasets  methods   base     



other attached packages:

 [1] rvest_1.0.3       plm_2.6-3         spdep_1.3-3       spData_2.3.0      splm_1.6-5        estimatr_1.0.0    ggthemes_4.2.4    arsenal_3.6.3     lmtest_0.9-40     cowplot_1.1.1     ggthemr_1.1.0    

[12] texreg_1.38.6     lfe_2.9-0         Matrix_1.6-1      extrafont_0.19    patchwork_1.2.0   viridis_0.6.4     viridisLite_0.4.2 raster_3.6-23     sp_2.0-0          sf_1.0-14         lubridate_1.9.2  

[23] forcats_1.0.0     stringr_1.5.1     dplyr_1.1.4       purrr_1.0.2       readr_2.1.4       tidyr_1.3.1       tibble_3.2.1      ggplot2_3.5.0     tidyverse_2.0.0   zoo_1.8-12        haven_2.5.4      

[34] readxl_1.4.3      data.table_1.14.8 qs_0.25.5         here_1.0.1       



loaded via a namespace (and not attached):

 [1] Rdpack_2.6          DBI_1.1.3           deldir_1.0-9        gridExtra_2.3       s2_1.1.4            sandwich_3.0-2      rlang_1.1.2         magrittr_2.0.3      dreamerr_1.3.0     

[10] multcomp_1.4-25     e1071_1.7-13        compiler_4.3.1      vctrs_0.6.5         readstata13_0.10.1  wk_0.8.0            pkgconfig_2.0.3     crayon_1.5.2        backports_1.4.1    

[19] utf8_1.2.4          ggstance_0.3.6      tzdb_0.4.0          miscTools_0.6-28    bit_4.0.5           collapse_2.0.7      terra_1.7-46        LearnBayes_2.15.1   broom_1.0.5        

[28] parallel_4.3.1      R6_2.5.1            stringi_1.8.3       RColorBrewer_1.1-3  boot_1.3-28.1       extrafontdb_1.0     numDeriv_2016.8-1.1 cellranger_1.1.0    estimability_1.4.1 

[37] Rcpp_1.0.11         splines_4.3.1       timechange_0.2.0    tidyselect_1.2.0    rstudioapi_0.15.0   stringfish_0.15.8   maxLik_1.5-2        codetools_0.2-19    lattice_0.21-8     

[46] withr_2.5.2         coda_0.19-4         survival_3.5-5      fixest_0.11.1       units_0.8-4         proxy_0.4-27        RcppParallel_5.1.7  xml2_1.3.5          pillar_1.9.0       

[55] KernSmooth_2.23-21  generics_0.1.3      vroom_1.6.5         rprojroot_2.0.3     hms_1.1.3           munsell_0.5.0       scales_1.3.0        RApiSerialize_0.1.2 xtable_1.8-4       

[64] class_7.3-22        glue_1.6.2          spatialreg_1.3-2    emmeans_1.8.8       tools_4.3.1         dotCall64_1.1-1     mvtnorm_1.2-3       grid_4.3.1          Rttf2pt1_1.3.12    

[73] rbibutils_2.2.16    bdsmatrix_1.3-6     colorspace_2.1-0    nlme_3.1-162        Formula_1.2-5       cli_3.6.2           spam_2.10-0         fansi_1.0.6         gtable_0.3.4       

[82] digest_0.6.33       classInt_0.4-10     TH.data_1.1-2       lifecycle_1.0.4     httr_1.4.7          bit64_4.0.5         MASS_7.3-60        

















** Folder Structure:

Additional Material.pdf
ReadMe.txt
SHP_VOX_preparation
analysis

./SHP_VOX_preparation:
ReadMeVOXSHP.pdf
SHP
VOX
vox_panel_1996_2016.dta

./SHP_VOX_preparation/SHP:
community_numbers_99_17
data
scripts
workingfiles

./SHP_VOX_preparation/SHP/community_numbers_99_17:
spss
stata

./SHP_VOX_preparation/SHP/community_numbers_99_17/spss:
communes00.sav
communes01.sav
communes02.sav
communes03.sav
communes04.sav
communes05.sav
communes06.sav
communes07.sav
communes08.sav
communes09.sav
communes10.sav
communes11.sav
communes12.sav
communes13.sav
communes14.sav
communes15.sav
communes16.sav
communes17.sav
communes99.sav

./SHP_VOX_preparation/SHP/community_numbers_99_17/stata:
communes00.dta
communes01.dta
communes02.dta
communes03.dta
communes04.dta
communes05.dta
communes06.dta
communes07.dta
communes08.dta
communes09.dta
communes10.dta
communes11.dta
communes12.dta
communes13.dta
communes14.dta
communes15.dta
communes16.dta
communes17.dta
communes99.dta

./SHP_VOX_preparation/SHP/data:
bfsnr_munnr2012_complete.dta
communes00_clean.dta
communes01_clean.dta
communes02_clean.dta
communes03_clean.dta
communes04_clean.dta
communes05_clean.dta
communes06_clean.dta
communes07_clean.dta
communes08_clean.dta
communes09_clean.dta
communes10_clean.dta
communes11_clean.dta
communes12_clean.dta
communes13_clean.dta
communes14_clean.dta
communes15_clean.dta
communes16_clean.dta
communes17_clean.dta
communes99_clean.dta
grm.dta
grm_2012.dta
ile.dta
shp00_h_user.dta
shp00_p_user.dta
shp01_h_user.dta
shp01_p_user.dta
shp02_h_user.dta
shp02_p_user.dta
shp03_h_user.dta
shp03_p_user.dta
shp04_h_user.dta
shp04_p_user.dta
shp05_h_user.dta
shp05_p_user.dta
shp06_h_user.dta
shp06_p_user.dta
shp07_h_user.dta
shp07_p_user.dta
shp08_h_user.dta
shp08_p_user.dta
shp09_h_user.dta
shp09_p_user.dta
shp10_h_user.dta
shp10_p_user.dta
shp11_h_user.dta
shp11_p_user.dta
shp12_h_user.dta
shp12_p_user.dta
shp13_h_user.dta
shp13_p_user.dta
shp14_h_user.dta
shp14_p_user.dta
shp15_h_user.dta
shp15_p_user.dta
shp16_h_user.dta
shp16_p_user.dta
shp17_h_user.dta
shp17_p_user.dta
shp18_h_user.dta
shp18_p_user.dta
shp99_h_user.dta
shp99_p_user.dta
shp_ca.dta
shp_lj.dta
shp_mh.dta
shp_mp.dta
shp_so.dta
shp_unmatched_bfsnr.dta
shp_unmatched_bfsnr.xlsx
shp_unmatched_bfsnr_temp.xlsx
shp_unmatched_bfsnrl.dta
shpequiv_1999.dta
shpequiv_2000.dta
shpequiv_2001.dta
shpequiv_2002.dta
shpequiv_2003.dta
shpequiv_2004.dta
shpequiv_2005.dta
shpequiv_2006.dta
shpequiv_2007.dta
shpequiv_2008.dta
shpequiv_2009.dta
shpequiv_2010.dta
shpequiv_2011.dta
shpequiv_2012.dta
shpequiv_2013.dta
shpequiv_2014.dta
shpequiv_2015.dta
shpequiv_2016.dta
shpequiv_2017.dta
steinhauer_bfsnr_munnr2012.dta
steinhauer_history2012_bfsnr2012_longfile.dta

./SHP_VOX_preparation/SHP/scripts:
01_communitynr_conversion.R
02-06shp.do

./SHP_VOX_preparation/SHP/workingfiles:
final
household
individual

./SHP_VOX_preparation/SHP/workingfiles/final:
communes_all.dta
shp_combined_all.dta
shp_hh_all.dta
shp_lj_temp.dta
shp_p_all.dta
shp_p_lj_so.dta
shp_panel_1999_2017.dta
shp_so_temp.dta

./SHP_VOX_preparation/SHP/workingfiles/household:
temph00.dta
temph01.dta
temph02.dta
temph03.dta
temph04.dta
temph05.dta
temph06.dta
temph07.dta
temph08.dta
temph09.dta
temph10.dta
temph11.dta
temph12.dta
temph13.dta
temph14.dta
temph15.dta
temph16.dta
temph17.dta
temph18.dta
temph99.dta

./SHP_VOX_preparation/SHP/workingfiles/individual:
tempp00.dta
tempp01.dta
tempp02.dta
tempp03.dta
tempp04.dta
tempp05.dta
tempp06.dta
tempp07.dta
tempp08.dta
tempp09.dta
tempp10.dta
tempp11.dta
tempp12.dta
tempp13.dta
tempp14.dta
tempp15.dta
tempp16.dta
tempp17.dta
tempp18.dta
tempp99.dta

./SHP_VOX_preparation/VOX:
documentation
scripts
vox_dta
vox_spss

./SHP_VOX_preparation/VOX/documentation:
699_Vox_Doc_Questionnary_119_D.pdf
720_Vox_Doc_Questionnary_99_D.pdf
750_Vox_Doc_Questionnary_70_D_F_I.DOC

./SHP_VOX_preparation/VOX/scripts:
01-02vox.do
03_vox_dateconverter_sav_to_dta.R
04-09vox.do

./SHP_VOX_preparation/VOX/vox_dta:
699_Vox_Data_OriginalFile_119_D.dta
720_Vox_Data_OriginalFile_99_D.dta
749_Vox_Data_OriginalFile_71_D.dta
750_Vox_Data_OriginalFile_70_D.dta
761_Vox_Data_OriginalFile_59_D.dta
762_Vox_Data_OriginalFile_58_D.dta
825_Vox_Data_OriginalFile_121_D.dta
FORS
Steinhauer_plz_gdenr_crosswalk.dta
qtplz_bfsnr.dta
steinhauer_history2012_bfsnr2012_longfile.dta
vox100.dta
vox101.dta
vox102.dta
vox103.dta
vox104.dta
vox105.dta
vox106.dta
vox107.dta
vox108.dta
vox109.dta
vox110.dta
vox111.dta
vox112.dta
vox113.dta
vox115.dta
vox116.dta
vox117.dta
vox118.dta
vox119.dta
vox120.dta
vox121.dta
vox58.dta
vox59.dta
vox60.dta
vox61.dta
vox62.dta
vox63.dta
vox64.dta
vox65.dta
vox66.dta
vox67.dta
vox68.dta
vox69.dta
vox70.dta
vox71.dta
vox72.dta
vox73.dta
vox74.dta
vox75.dta
vox76.dta
vox77.dta
vox78.dta
vox79.dta
vox80.dta
vox81.dta
vox82.dta
vox83.dta
vox84.dta
vox85.dta
vox87.dta
vox88.dta
vox89.dta
vox90.dta
vox91.dta
vox92.dta
vox93.dta
vox94.dta
vox95.dta
vox96.dta
vox97.dta
vox98.dta
vox99.dta
vox_cleaning_panel_fs_03042020.do
voxnr_refdate_check.xlsx
workingfiles

./SHP_VOX_preparation/VOX/vox_dta/FORS:
vox115.dta
vox116.dta
vox58.dta
vox59.dta
vox60.dta
vox61.dta
vox62.dta
vox63.dta
vox64.dta
vox65.dta
vox66.dta
vox67.dta
vox68.dta
vox80.dta
vox81a.dta
vox81b.dta
vox87.dta
vox88.dta
vox89.dta
vox90.dta
vox91.dta
vox96.dta

./SHP_VOX_preparation/VOX/vox_dta/workingfiles:
codebook.txt
intdate_vox100.dta
intdate_vox101.dta
intdate_vox102.dta
intdate_vox103.dta
intdate_vox104.dta
intdate_vox105.dta
intdate_vox106.dta
intdate_vox107.dta
intdate_vox108.dta
intdate_vox109.dta
intdate_vox110.dta
intdate_vox111.dta
intdate_vox112.dta
intdate_vox113.dta
intdate_vox115.dta
intdate_vox116.dta
intdate_vox117.dta
intdate_vox118.dta
intdate_vox119.dta
intdate_vox120.dta
intdate_vox121.dta
intdate_vox93.dta
intdate_vox94.dta
intdate_vox95.dta
intdate_vox96.dta
intdate_vox97.dta
intdate_vox98.dta
intdate_vox99.dta
part2_2.tex
unmatched_qtplz.dta
unmatched_qtplz.xlsx
vox100.dta
vox100_clean.dta
vox101.dta
vox101_clean.dta
vox102.dta
vox102_clean.dta
vox103.dta
vox103_clean.dta
vox104.dta
vox104_clean.dta
vox105.dta
vox105_clean.dta
vox106.dta
vox106_clean.dta
vox107.dta
vox107_clean.dta
vox108.dta
vox108_clean.dta
vox109.dta
vox109_clean.dta
vox110.dta
vox110_clean.dta
vox111.dta
vox111_clean.dta
vox112.dta
vox112_clean.dta
vox113.dta
vox113_clean.dta
vox115.dta
vox115_clean.dta
vox116.dta
vox116_clean.dta
vox117.dta
vox117_clean.dta
vox118.dta
vox118_clean.dta
vox119.dta
vox119_clean.dta
vox120.dta
vox120_clean.dta
vox121.dta
vox121_clean.dta
vox58.dta
vox58_clean.dta
vox58_clean_fors.dta
vox59.dta
vox59_clean.dta
vox59_clean_fors.dta
vox60.dta
vox60_clean.dta
vox60_clean_fors.dta
vox61.dta
vox61_clean.dta
vox61_clean_fors.dta
vox62.dta
vox62_clean.dta
vox62_clean_fors.dta
vox63.dta
vox63_clean.dta
vox63_clean_fors.dta
vox64.dta
vox64_clean.dta
vox64_clean_fors.dta
vox65.dta
vox65_clean.dta
vox65_clean_fors.dta
vox66.dta
vox66_clean.dta
vox66_clean_fors.dta
vox67.dta
vox67_clean.dta
vox67_clean_fors.dta
vox68.dta
vox68_clean.dta
vox68_clean_fors.dta
vox69.dta
vox69_clean.dta
vox70.dta
vox70_clean.dta
vox71.dta
vox71_clean.dta
vox72.dta
vox72_clean.dta
vox73.dta
vox73_clean.dta
vox74.dta
vox74_clean.dta
vox75.dta
vox75_clean.dta
vox76.dta
vox76_clean.dta
vox77.dta
vox77_clean.dta
vox78.dta
vox78_clean.dta
vox79.dta
vox79_clean.dta
vox80.dta
vox80_clean.dta
vox81.dta
vox81_clean.dta
vox82.dta
vox82_clean.dta
vox83.dta
vox83_clean.dta
vox84.dta
vox84_clean.dta
vox85.dta
vox85_clean.dta
vox87.dta
vox87_clean.dta
vox88.dta
vox88_clean.dta
vox89.dta
vox89_clean.dta
vox90.dta
vox90_clean.dta
vox91.dta
vox91_clean.dta
vox92.dta
vox92_clean.dta
vox93.dta
vox93_clean.dta
vox94.dta
vox94_clean.dta
vox95.dta
vox95_clean.dta
vox96.dta
vox96_clean.dta
vox97.dta
vox97_clean.dta
vox98.dta
vox98_clean.dta
vox99.dta
vox99_clean.dta
vox_all.dta
vox_fors_58_68.dta
vox_panel_1996_2016.dta
vox_panel_1996_2016_bfsnr_partI.dta

./SHP_VOX_preparation/VOX/vox_spss:
vox100.sav
vox101.sav
vox102.sav
vox103.sav
vox104.sav
vox105.sav
vox106.sav
vox107.sav
vox108.sav
vox109.sav
vox110.sav
vox111.sav
vox112.sav
vox113.sav
vox115.sav
vox116.sav
vox117.sav
vox118.sav
vox119.sav
vox120.sav
vox121.sav
vox58.sav
vox59.sav
vox60.sav
vox61.sav
vox62.sav
vox63.sav
vox64.sav
vox65.sav
vox66.sav
vox67.sav
vox68.sav
vox69.sav
vox70.sav
vox71.sav
vox72.sav
vox73.sav
vox74.sav
vox75.sav
vox76.sav
vox77.sav
vox78.sav
vox79.sav
vox80.sav
vox81.sav
vox82.sav
vox83.sav
vox84.sav
vox85.sav
vox87.sav
vox88.sav
vox89.sav
vox90.sav
vox91.sav
vox92.sav
vox93.sav
vox94.sav
vox95.sav
vox96.sav
vox97.sav
vox98.sav
vox99.sav

./analysis:
CrossBorderPol.Rproj
code
data
figures
tables

./analysis/code:
00dataOrganizing.R
01labormarketMerge.do
02mapping_travelTim.R
03analysis.R
04political_effects_plot.R
05immigrants_effects_plot.R
06econ_analysis.R
07traffic.R
08ticino.R
09summary_stats_main.R
10SHP.R
11summary_stats_SHP.R
12VOX.R
13summary_stats_VOX.R
14spatial_regressions.R
15referendum_final.R
16Factiva.R
cleaning
functions.R
resources

./analysis/code/cleaning:
cbwCleaning.R
elecCleaning.R
muniPopCleaning.R
petraCleaning.R
shpCleaning.R
statpopCleaning.R
ticino_clean.R
ticino_merge.R
timeConstantCleaning.R
voxCleaning.R

./analysis/code/resources:
country_codes.R

./analysis/data:
Factiva
cb.qs
cleaning
cw_munnr12_bfs19.csv
labor_market
mappingdata
referendum
sess_merged.dta
shp.qs
ticino_parliament
ticino_parliament_byregion.qs
ticino_parliament_main.qs
traffic
vox.qs

./analysis/data/Factiva:
EconAllDE.csv
EconAllFR.csv
MigrantAllDE.csv
MigrantAllFR.csv
MigrantCH_DE.csv
MigrantCH_FR.csv
MigrantDE.csv
MigrantFR.csv
MigrantIT.csv
StressAllDE.csv
StressAllFR.csv
StressCH_DE.csv
StressCH_FR.csv
StressDE.csv
StressFR.csv
StressIT.csv

./analysis/data/cleaning:
CBWregister
Elections
MuniCodes.csv
MuniCrossWalk_MM
MuniPop_1991_2018
PETRA
SHP
STATPOP
VOX
auxiliary_files

./analysis/data/cleaning/CBWregister:
ggs_grenzgaengerstatistik_1996_2016_quarterly.dta

./analysis/data/cleaning/Elections:
px-x-1702020000_105.xlsx
px-x-1702020000_105_1987.xlsx

./analysis/data/cleaning/MuniCrossWalk_MM:
cw2019_dec31mergers.csv

./analysis/data/cleaning/MuniPop_1991_2018:
all.xlsx
foreigners.xlsx
swiss.xlsx

./analysis/data/cleaning/PETRA:
STWB__ZE1990.dta
STWB__ZE1991.dta
STWB__ZE1992.dta
STWB__ZE1993.dta
STWB__ZE1994.dta
STWB__ZE1995.dta
STWB__ZE1996.dta
STWB__ZE1997.dta
STWB__ZE1998.dta
STWB__ZE1999.dta
STWB__ZE2000.dta
STWB__ZE2001.dta
STWB__ZE2002.dta
STWB__ZE2003.dta
STWB__ZE2004.dta
STWB__ZE2005.dta
STWB__ZE2006.dta
STWB__ZE2007.dta
STWB__ZE2008.dta
STWB__ZE2009.dta
STWB__ZE2010.dta
Synopsis_PETRA.xls

./analysis/data/cleaning/SHP:
Documentation SHP data.docx
shp_panel_1999_2017.dta

./analysis/data/cleaning/STATPOP:
STATPOP_2010.dta
STATPOP_2011.dta
STATPOP_2012.dta
STATPOP_2013.dta
STATPOP_2014.dta
Synopsis_Bestand_STATPOP_2014.xlsx

./analysis/data/cleaning/VOX:
vox_panel_1996_2016.dta

./analysis/data/cleaning/auxiliary_files:
a6_munnr2012_coordinates.dta
border_region_identifiers_bigotta.dta
traveltime_originMUN2012_bordercrossingsMUN.dta

./analysis/data/labor_market:
a31_borderid_mun2008.dta
a41_traveltime_munnr2008.dta
a42_traveltime_munnr2012w.dta
d01_sess_1994_2010.dta
d4_sess_outcomesnat.dta

./analysis/data/mappingdata:
K4_polg20190101_vf
shp
timoGrossenbacherData

./analysis/data/mappingdata/K4_polg20190101_vf:
K4polg20190101vf_ch2007Pnts.cpg
K4polg20190101vf_ch2007Pnts.dbf
K4polg20190101vf_ch2007Pnts.prj
K4polg20190101vf_ch2007Pnts.qpj
K4polg20190101vf_ch2007Pnts.shp
K4polg20190101vf_ch2007Pnts.shx
K4polg20190101vf_ch2007Poly.cpg
K4polg20190101vf_ch2007Poly.dbf
K4polg20190101vf_ch2007Poly.prj
K4polg20190101vf_ch2007Poly.qpj
K4polg20190101vf_ch2007Poly.shp
K4polg20190101vf_ch2007Poly.shx

./analysis/data/mappingdata/shp:
K3b19.cpg
K3b19.dbf
K3b19.prj
K3b19.shp
K3b19.shx
K3g19.cpg
K3g19.dbf
K3g19.prj
K3g19.shp
K3g19.shx
K4g19.cpg
K4g19.dbf
K4g19.prj
K4g19.shp
K4g19.shx
g1a19.cpg
g1a19.dbf
g1a19.prj
g1a19.shp
g1a19.shx
g1b19.cpg
g1b19.dbf
g1b19.prj
g1b19.shp
g1b19.shx
g1g19.cpg
g1g19.dbf
g1g19.prj
g1g19.shp
g1g19.shx
g1g19_encl.cpg
g1g19_encl.dbf
g1g19_encl.prj
g1g19_encl.shp
g1g19_encl.shx
g1g19_li.cpg
g1g19_li.dbf
g1g19_li.prj
g1g19_li.shp
g1g19_li.shx
g1k19.cpg
g1k19.dbf
g1k19.prj
g1k19.shp
g1k19.shx
g1l19.cpg
g1l19.dbf
g1l19.prj
g1l19.shp
g1l19.shx
g1r19.cpg
g1r19.dbf
g1r19.prj
g1r19.shp
g1r19.shx
g1s19.cpg
g1s19.dbf
g1s19.prj
g1s19.shp
g1s19.shx
g2a19.cpg
g2a19.dbf
g2a19.prj
g2a19.shp
g2a19.shx
g2b19.cpg
g2b19.dbf
g2b19.prj
g2b19.shp
g2b19.shx
g2g19.cpg
g2g19.dbf
g2g19.prj
g2g19.shp
g2g19.shx
g2g19_encl.cpg
g2g19_encl.dbf
g2g19_encl.prj
g2g19_encl.shp
g2g19_encl.shx
g2g19_li.cpg
g2g19_li.dbf
g2g19_li.prj
g2g19_li.shp
g2g19_li.shx
g2k19.cpg
g2k19.dbf
g2k19.prj
g2k19.shp
g2k19.shx
g2l19.cpg
g2l19.dbf
g2l19.prj
g2l19.shp
g2l19.shx
g2r19.cpg
g2r19.dbf
g2r19.prj
g2r19.shp
g2r19.shx
g2s19.cpg
g2s19.dbf
g2s19.prj
g2s19.shp
g2s19.shx
k3k19.cpg
k3k19.dbf
k3k19.prj
k3k19.shp
k3k19.shx
k3l19.cpg
k3l19.dbf
k3l19.prj
k3l19.shp
k3l19.shx
k3s19.cpg
k3s19.dbf
k3s19.prj
k3s19.shp
k3s19.shx
k4a19.cpg
k4a19.dbf
k4a19.prj
k4a19.shp
k4a19.shx
k4b19.cpg
k4b19.dbf
k4b19.prj
k4b19.shp
k4b19.shx
k4k19.cpg
k4k19.dbf
k4k19.prj
k4k19.shp
k4k19.shx
k4l19.cpg
k4l19.dbf
k4l19.prj
k4l19.shp
k4l19.shx
k4r19.cpg
k4r19.dbf
k4r19.prj
k4r19.shp
k4r19.shx
k4s19.cpg
k4s19.dbf
k4s19.prj
k4s19.shp
k4s19.shx

./analysis/data/mappingdata/timoGrossenbacherData:
02-relief-ascii.asc
02-relief-ascii.asc.aux.xml
02-relief-ascii.prj
data.csv
g2k15.dbf
g2k15.prj
g2k15.sbn
g2k15.sbx
g2k15.shp
g2k15.shx
g2l15.dbf
g2l15.prj
g2l15.sbn
g2l15.sbx
g2l15.shp
g2l15.shx
g2s15.dbf
g2s15.prj
g2s15.sbn
g2s15.sbx
g2s15.shp
g2s15.shx
gde-1-1-15.cpg
gde-1-1-15.dbf
gde-1-1-15.prj
gde-1-1-15.qpj
gde-1-1-15.shp
gde-1-1-15.shx
scale.png

./analysis/data/referendum:
px-x-1703030000_101_20240403-171844.xlsx

./analysis/data/ticino_parliament:
GC_TI_1987-2019.xlsx
ticino_clean.qs
ticino_full.txt
ticino_handcoded.csv

./analysis/data/traffic:
zst_balanced_yearly_inputR_all.dta
zst_balanced_yearly_inputR_noNatStr.dta
zst_inputR_hourly_conganalysis.dta
zst_inputR_hourly_conganalysis_noNatStr.dta

./analysis/figures:
Congestion_noNatStr.pdf
Factiva_DE_Countries.pdf
Factiva_DE_Parties.pdf
Factiva_FR_Countries.pdf
Factiva_FR_Parties.pdf
Factiva_IT_Countries.pdf
Fig1.png
Fig10.pdf
Fig2.png
Fig3.pdf
Fig4.pdf
Fig5.pdf
Fig6.pdf
Fig7.pdf
Fig8.pdf
Fig9.pdf
Referendums_Immigration.pdf
Referendums_Placebo.pdf
TicinoRegionParty.pdf
TicinobyRegion.pdf
TrafficCongestion.pdf
Traffic_noNatStr.pdf
VOX_calmOrder_trends.pdf

./analysis/tables:
baselineCenterLeft.tex
baselineImm.tex
baselinePolitical.tex
baselinePoliticalControls.tex
baselinePoliticalDistances.tex
baselinePoliticalParties.tex
byOrigin_98.tex
byOrigin_98_DE.tex
byOrigin_98_FR.tex
byOrigin_98_IT.tex
byOrigin_C.tex
byOrigin_C_DE.tex
byOrigin_C_FR.tex
byOrigin_C_IT.tex
econ_outcomes.tex
esPol.tex
esdfA.tex
referendumsDID.tex
referendums_es_topic.tex
referendums_es_year.tex
shp_econ.tex
shp_financial_subgroups.tex
shp_foreigners_subgroups_cultural.tex
shp_foreigners_subgroups_ti.tex
shp_housingexp_subgroups.tex
shp_other_outcomes.tex
shp_unempl_subgroups.tex
spatial_dependence.tex
splitImm.tex
summary_stats
ticino_main.tex
traffic_congestion.tex
traffic_operative_hour.tex
vox_results.tex

./analysis/tables/summary_stats:
shp_summary1999.tex
shp_summary2017.tex
shp_summary_TI1999.tex
shp_summary_TI2017.tex
summary_main.tex
summary_main_TI.tex
summary_sess.tex
vox_summary1999.tex
vox_summary2016.tex
















** References: 

Beerli, Andreas, Jan Ruffner, Michael Siegenthaler, and Giovanni Peri. "The abolition of immigration restrictions and the performance of firms and workers: evidence from Switzerland." American Economic Review 111, no. 3 (2021): 976-1012.

